(function() {
				const searchInput = document.getElementById('searchInput');
				const searchBtn = document.getElementById('searchBtn');

				searchBtn.addEventListener('click', function() {
					const keyword = searchInput.value.trim();
					if (keyword) {

						window.location.href = 'search.html?keywords=' + encodeURIComponent(keyword);
					} else {

						window.location.href = 'search.html';
					}
				});
				searchInput.addEventListener('keypress', function(e) {
					if (e.key === 'Enter') {
						const keyword = searchInput.value.trim();
						if (keyword) {
							window.location.href = 'search.html?keywords=' + encodeURIComponent(keyword);
						} else {
							window.location.href = 'search.html';
						}
					}
				});
			})();